﻿using System;
using System.Net;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using Jok.Client.Infrastructure;

namespace Jok.Client.Portal.ViewModels
{
    public class ShellViewModel : ViewModel<ShellViewModel>
    {
        public ShellViewModel()
        {
            //if (Container != null)
            //    ContentView = Container.GetExportedValue<IView>(Regions.Shell.Content.Authorization);

            //EventAggregator.GetEvent<AuthorizationEvents.LoggedIn>().Subscribe(OnAuthorizationLoggedIn);
        }

        public void OnAuthorizationLoggedIn(object param)
        {
            //this.ContentView = Container.GetExportedValue<IView>(Regions.Shell.Content.Lobby);
        }



        public object ViewContent
        {
            get { return mViewContent; }
            set
            {
                if (mViewContent == value) return;

                mViewContent = value;
                PropertyManager.NotifyChanged(c => c.ViewContent);
            }
        }
        private object mViewContent;
    }

   
}
